package com.ycz.sas.jgen.main;

import java.util.HashMap;
import java.util.Map;

public class Context {
	
	private static Context context;
	private static Map<String, Object> map;
	
	private Context(){
		map = new HashMap<String, Object>();
	}
	
	static Context getContext(){
		if(context == null){
			context = new Context();
		}
		return context;
	}
	
	static void put(String key, Object value){
		map.put(key, value);
	}
	
	static Object get(String key){
		return map.get(key);
	}

}
